xen/arm: setup: Calculate correctly the size of Xen
authorJulien Grall <julien.grall@arm.com>
Wed, 16 Oct 2019 11:12:51 +0000 (12:12 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 29 Oct 2019 18:39:20 +0000 (11:39 -0700)
commit8502a2cdcc61542930b25ea3e4261cf4bf3b1a41
treef17bd1c991b907eb77325a291ebd88962de70012
parent7f5f48dff399cb4739dc74f136fa605a0eaad1d5
xen/arm: setup: Calculate correctly the size of Xen

The current size of Xen is computed using _end - _start + 1. However,
_end is pointing one past the end of Xen, so the size of Xen is
off-by-one.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit 08e2059facd78d5ffaf206ba06ac2017c4adeed4)
xen/arch/arm/setup.c